identifier validation helper functions