def METHOD_NAME(config, storage):
    """Check if there is a new commit that hasn't been built yet
    *config* is a BuildConfig object
    *storage* is the base URL of the storage server
    The returned value is the git SHA of a new commit to be built if there is
    one, or True if the last built commit is the same as the branch head
    (nothing to do), or False if an error occurred.
    """
    last_commit = get_last_commit(config, storage)
    branch_head = get_branch_head(config)
    if not branch_head:
        return False
    elif last_commit == branch_head:
        return True
    else:
        return branch_head