convert option to int before using as bool