proper handling of false, true, null and undefined attribute values