'Is Not Valid' but it seems to work?

is there a different way to do it? i’m not aware