That's right, there are many edge cases. But as an option and with a clean code structure, it should work. Honestly, I'm not experienced enough to know how other developers organize their code, to know a better way to distinguish between them safely. I am currently working on a project to create a lightweight framework that will make it easier for young people and all beginners to get started in the world of web development. I attach great importance to clean programming and organization. Losing track of things means becoming overwhelmed. So if my request was too naive and causes too many problems, it's okay to reject it.