Symphony 2 CMS extension: use conditional filtering to prevent data-source from querying database when it's not needed.