Added Nil slice check