Fix boolean behaviour
Improve isinstance logic
Fix case issue in params