Got rid of @error suppression to avoid E_NOTICE -> 500 error.