/**
  * Check if the request returned what we want, returns:
  *      true if there is expected data in the response
  *      false if there isn't (e.g. expected data not found)
  *
  *  If returns false then getPackages should return null.
  *  If isError then this should return false too
  *
  * @return boolean
  */
 public function isValid()
 {
     if (parent::isValid()) {
         return isset($this['items']) ? true : false;
     }
     return false;
 }
 /**
  * Check if the request returned what we want
  *      true if there is expected data in the response
  *      false if there isn't (e.g. nothing found)
  *
  *  If returns false then getData should return null
  *
  * @return boolean
  */
 public function isValid()
 {
     return parent::isValid();
 }