export const isDefined = (value: T | null | undefined): value is T => { return value !== null && value !== undefined; };