how can I do this IF with ternary operators?
if (img != null) { return img; } else if (!user) { return \'img.svg\'; } else if (user) { if (user.img &