fix required bor when second cond is undefined