adding  method for toggling booleans or models with values array