Added array validation for last update of Laravel