Update lib/Controller/Data/Array.php

fix for sequential ID when session array is empty otherwise max() throw error