fixed falsy evaluation error