Added check for ensuring lowercase booleans (null, true, false)