This will break for something like `[1 nil]`. Always use `empty?` to check if something is empty.