Fixed: hasattrib -> hasattr; found by @MJsaka