getPrevious(); if ($previous && $previous instanceof AmazonWebapiException) { return [$previous]; } return null; } }