[5.0] Add getGenericUser Function

`$user !== null` is faster.