Resource: removed nil test because len handles nil