You're checking for u.hasStream twice. You can instead check once and then check for u.me