ternary operator for self == user check