Add a test to see if the array is not empty and has at least 1 entry.
if (!Level1Pickups.IsEmpty() && Level1Pickups.Num() > 0) {
/// your code here
}
Add a test to see if the array is not empty and has at least 1 entry.
if (!Level1Pickups.IsEmpty() && Level1Pickups.Num() > 0) {
/// your code here
}