PHP mini-smart library to set and return unlimited sub-categories