fixes isPartialFunction