Cannot coerce Null to Boolean
line 4
