added hasPhone function