Changed return value from 'boolean' to 'bool'