return an empty list if 0 index passed

return an empty list if 0 index passed