export function toArray(input?: T | T[]): T[] { return Array.isArray(input) ? input : (input ? [input] : []); }