I suggest combining this if statement with the one on the line above.