An insertability constraint for shape optimization