Fixed the Inverted if statement.