glinscott/Stockfish — comment on commit 0347339970b68b998c7202e22c01560850dcd13e
File: src/endgame.cpp line 90
By mcostalba:

Because we have the lone king I'd write simply:

return pos.side_to_move() == c
&& !pos.in_check()
&& !MoveList(pos).size();

I would even inline at the only call place so to be more clear what we aredoing and because we don't need a new function for a simple condition.