0 && $reqParams[0] == "") array_shift($reqParams); if(trim(end($reqParams)) === "") array_pop($reqParams);