Type guard that checks if a value is defined (not null or undefined).
The type of the value when it is defined
The value to check
True if the value is defined (not null or undefined), false otherwise
Type guard that checks if a value is defined (not null or undefined).