This if determines if there has already been a match. In such case, determine via a second for-loop which of the two functions (which both match the argument types) is more specific, i.e. has the lowest subclasses.