Three is a check if rect is an array. Do you need to have one here as well?