is_valid_custom_ident
We repeat this pattern in a couple of places so let's add a single helper method