Function needs to check the input data. If Kohana uses some simplifications, it does not mean that this is the right approach.