If we're checking for null, false or an empty string, this should be

  if (self::$standardDir === null) (or false, or '')

empty on strings produces strange results, e.g. '0' is empty as well.