correct condition for undefined fallback