How to check if Constraint exist