public shift(): T | undefined {
        if (isNullOrUndefined(this.head)) {
            return undefined;
        }