replace 'nil' with 'false'