added check for null passengers.