Fix isSomeFunction check when overloads are present