Simplify is_user_context method

Remove unnecessary if/else clauses and keep the code simpler.

Change-Id: I31ed8826f7d05ec6efe93486e0f7f6a7bb05b8f1
Merge "Simplify is_user_context method"