is.constraint function

check function for constraints