def has_google_calendar(user): return hasattr(user, 'google_calender') and bool(user.google_calender.token)