code: private function isExternal($file)
      {
          if (strpos($file, 'http://') !== false
          || strpos($file, 'https://') !== false) {
              return true;
          } else {
              return false;
          }
      }
docs: /*
  Check if file is external