Is there a way to check if a foreign key exists on Doctrine?