Test if instance-array is empty before trying to return something from it