Not a biggy but this could be simplified to : `return slots.length ? slots[0].element : undefined;`