Only add boolean option if value is true.