Simplify expression using container's front() rather than begin()->