added explicit case for no elem in board