hasProperty('something') matches if actual.something is defined.