better if condition for guarding missing user data