public static function HasGifHeader( string $file, string $firstBytes = null ) : bool
   {

      if ( empty( $firstBytes ) )
      {
         $firstBytes = File::ReadFirstBytes( $file, 6 );
      }

      return (bool) \preg_match( '~^GIF\d~', $firstBytes );

   }