i have helper function that takes ORM\Query from various models to add pagination info to the query then return the result now i want to add sorting too to this function but the problem that not all models have 'modified' attribute so i want to check for this BEFORE getting the result! i can see the model attribute in the ORM\Query instance but its protected :( any help?