Removed extra if statement.