code: public static function ofNullable($nullableReference) : Optional
      {
          return $nullableReference === null
              ? Optional::absent()
              : Optional::of($nullableReference);
      }
docs: If nullableReference is non-null, returns an {@link Optional} instance containing that
  reference; otherwise returns {@link Optional::absent}.
  
  @param $nullableReference
  @return Optional