Shift order of checks to improve speed
Merge pull request #4924 from mark-grimes/implementLangeSpeedup

Small Shashlik reco speed improvement