able to hande 0 arrays