check for nil for location and destination