PEAR::isError() is not defined as static so its execution throws php warnings