Get rid of undefined any? call on a boolean