correcting is_boolean to is_bool in set secure