Determining if a set of coordinates represents a function