Conditionally construct map

I’d likely use a filter or guard is_list(shipyard.ships)