def check_comp(comp=None):
    """
    Checks if the given competition url is properly formatted
    """
    if comp == None:
        return None
    if comp.endswith('/'):
        comp = comp[:-1]
    if comp.startswith('/'):
        pass
    else:
        comp = '/' + comp
    return comp
