ES6: Binary Integer Literal and Octal Integer Literal

extract complex conditional into a 'isBooleanLiteral' helper function