Updated to unset $nothing
Created a function to compare arrays