fix php errors when $name = boolean false