combine isset() with ternary