You should do pattern matching on items and return "" on empty list. Using `items.[0]` is not common and unsafe.