null check when looking for apns