Is their anyway possible to end your conditional statement in php inside. Like ending it without reading all the code inside:

for example:

if (condition statement)
code 1
code 2
code 3
if (code 4 is empty)
code 5
code 6
code 7

something like this.. What I want is if code 4 is empty or whatever condition, it should end. The code 5, code 6, code 7 should not be read. I'm wondering if php have that.