function ensure_type($type) { if (is_string($type)) { return typeInfo::getInfo($type); } else { if (is_array($type)) { return typeInfo::getInfo($type); } } return false; }