Added array compare function to help with smart reloading