Ver original<?php// código necesario...if(array_key_exists('error', $array)){ echo $array['error']; exit;}// si no hay error continuar