code: public function getLocation($location, $owner = null)
      {
          $bucket = $this->getBucket('locations:' . $location);
          if (is_null($owner)) {
              return $bucket->toArray();
          } else {
              $result = [];
              foreach ($bucket as $key => $widget) {
                  if ($widget->owner === $owner) {
                      $result[$key] = $widget;
                  }
              }
  
              return $result;
          }
      }
docs: Get location.
  
  @param unknown $location
  @param unknown $owner    (optional)
  
  @return unknown