you could use the if statement and stop(); function