Ensuring that the return value is a boolean. Probably not necessary, but
for some reason I was paranoid.