Fixed empty array warning