That would heavily smell like really dirty code and is a pretty bad example.