I changed the _getDateParam method to use the Cleaner. This avoids the explicit check in all controller methods.