checkLogicalInteger function

Does an argument satisfy required conditions?