in empty array safe