def IsProjectParentValid(properties):
  """ A helper function to validate that the project is either under a folder
      or under an organization and not both
  """
  if ('organization-id' not in properties and
      'parent-folder-id' not in properties):
    return False
  if 'organization-id' in properties and 'parent-folder-id' in properties:
    return False
  return True