Added null check for enquiry type