Don't call deprecated method.
SWIG 3 is more strict about mapping of bool.