This poorly named function comes all the way back from the UserCake days.
It was primarily used to see if a user could see a menu item
It has primarily been replaced by hasPerm which accepts an array
This function returns true or false
<?php if(checkMenu(2)){
//user has permission, do something
} ?>