Fixed boolean detection bug

Apparently WordPress recognize boolean value as string "on" and "off"
instead of "true / false".