-3 bytes by changing this condition to `elem != null && elem !== false`.