I recently went to a company to get a job at a place I recently worked at. However the all reason that they will not give me my old job back is because my ex girlfriend does not want me to work there. Is that a viable reason to refuse a person employment?

Not asking for a moral answer I am more curious if that is a genuine reason that can be given or not.