public static function getWhere($array, $key, $search, $default = null)
  {
      foreach ($array as $item) {
          if (isset($item[$key]) && $item[$key] == $search) {
              return $item;
          }
      }

      return $default;
  }