Check seems unnecessary, as code will behave fine with empty list