Component::hasProperty() small optimization