private function normalizeScalar($data) {
		if (null === $data || is_scalar($data)) {
			/*// utf8_encode only works for Latin1 so we rely on mbstring
			if (is_string($data)) {
				$data = mb_convert_encoding($data, "UTF-8");
			}*/

			if (is_float($data)) {
				$data = $this->normalizeFloat($data);
			}

			return $data;
		}

		return [];
	}
private function normalizeScalar($data) {
		if (null === $data || is_scalar($data)) {
			/*// utf8_encode only works for Latin1 so we rely on mbstring
			if (is_string($data)) {
				$data = mb_convert_encoding($data, "UTF-8");
			}*/

			if (is_float($data)) {
				$data = $this->normalizeFloat($data);
			}

			return $data;
		}

		return [];
	}
private function normalizeScalar ( $ data ) { if ( null === $ data || is_scalar ( $ data ) ) { /*// utf8_encode only works for Latin1 so we rely on mbstring
			if (is_string($data)) {
				$data = mb_convert_encoding($data, "UTF-8");
			}*/ if ( is_float ( $ data ) ) { $ data = $ this -> normalizeFloat ( $ data ) ; } return $ data ; } return [ ] ; }
Returns various, filtered, scalar elements

We're returning an array here to detect failure because null is a scalar and so is false

@param $data

@return mixed
Returns various filtered scalar elements