Thank you Earl and Marc, I've now replaced the klunky test with: return ( $_GET['q']=='catalog/16' && (empty($_GET['page']) || $_GET['page']=='0,0') ); and it works like a charm!