delete()){ return []; } } catch (QueryException|\Exception $exception){ throw new MalformedRequestException('Unable to update the record due to unexpected error'); } } }