fix situation where the content of the param can be false and not set the attr