[#5330] Fixed has_attr typo