Rename is_user function. Refactor :user condition
Remove redundant code