Better solution for WP_ERROR