be more careful about grabbing the first element from what we might think is an array, but might be undefined