Updated the helper to be compliant with CakePHP's coding standards