ok, will change to hasattr, thanks!