Temporary variables are introduced to check on their empty (an empty array) as test them on the void will be faster than running gear merge two arrays, even if the second empty array