import requests


def github_branch_exists(project, branch, project_owner='ceph'):
    """
    Query GitHub to check the existence of a project's branch
    """
    url_templ = 'https://github.com/{project_owner}/{project}/tree/{branch}'
    url = url_templ.format(project_owner=project_owner, project=project,
                           branch=branch)
    resp = requests.head(url)
    return resp.ok