def METHOD_NAME(soup):
    footer_len = len(soup.find_all('footer'))
    if footer_len:
        for _ in range(footer_len):
            if soup.footer:
                soup.footer.decompose()
    return soup