Refactor shiftId() into ArrayUtil class
Moar reformatting and add some docblocks
Use ArrayUtil::shiftId() method
Reformat assignment into separate lines
Push data validation down into model