Error thrown

Call to a member function hasAttribute() on bool