test/controllers/steps/Destinations/SearchDestinationsSteps.java
private boolean destinationInList(String name, List<Destination> destinationList) {
        for (Destination destination: destinationList) {
            if (destination.getName().equals(name)) {
                return true;
            }
        }
        return false;
    }
/**
     * Check if a destination list contains a destination of matching name
     * @param name - Name of destination
     * @param destinationList - List of destinations found from search
     * @return boolean - True if destination in list, false otherwise
     */
Check if a destination list contains a destination of matching name
@param name - Name of destination
@param destinationList - List of destinations found from search
@return boolean - True if destination in list, false otherwise
Check if a destination list contains a destination of matching name @param name - Name of destination @param destinationList - List of destinations found from search @return boolean - True if destination in list false otherwise
private boolean destinationInList(String name, List<Destination> destinationList) {
        for (Destination destination: destinationList) {
            if (destination.getName().equals(name)) {
                return true;
            }
        }
        return false;
    }
private boolean destinationInList ( String name , List < Destination > destinationList ) { for ( Destination destination : destinationList ) { if ( destination . getName ( ) . equals ( name ) ) { return true ; } } return false ; }
Check if a destination list contains a destination of matching name
 @param name - Name of destination
 @param destinationList - List of destinations found from search
 @return boolean - True if destination in list, false otherwise
Check if a destination list contains a destination of matching name @param name - Name of destination @param destinationList - List of destinations found from search @return boolean - True if destination in list false otherwise