You check for if $reason just above. Did you still need to do it on this line?