fixed static call to isError, now works in 5.4.x