public static function arrayToObject($array = false) {

        if ($array && Validate::isArray($array)) {

            $object = new \stdClass();

            foreach ($array as $key => $value) {

                $object->$key = $value;
            }

            return $object;
        }

        return false;
    }