import pyrebase


def store_url(is_yes, url, FB_API_KEY, FB_USER, FB_PASS):
    # do nothing if it's unnecessary
    if is_yes is False:
        return is_yes

    # connect to firebase
    config = {
        "apiKey": FB_API_KEY,
        "authDomain": "coses-acbe6.firebaseapp.com",
        "databaseURL": "https://coses-acbe6.firebaseio.com",
        "storageBucket": "coses-acbe6.appspot.com"}

    # otherwise keep url
    firebase = pyrebase.initialize_app(config)

    # creates token every time maybe worth doing it once every 30m as they
    # expire every hour
    auth = firebase.auth()
    user = auth.sign_in_with_email_and_password(FB_USER, FB_PASS)

    db = firebase.database()
    data = {
        "url": url
    }

    db.child("users").push(data, user['idToken'])

    is_yes = False

    return is_yes

import pyrebase


def store_url(is_yes, url, FB_API_KEY, FB_USER, FB_PASS):
    # do nothing if it's unnecessary
    if not is_yes:
        return is_yes

    # connect to firebase
    config = {
        "apiKey": FB_API_KEY,
        "authDomain": "coses-acbe6.firebaseapp.com",
        "databaseURL": "https://coses-acbe6.firebaseio.com",
        "storageBucket": "coses-acbe6.appspot.com"}

    # otherwise keep url
    firebase = pyrebase.initialize_app(config)

    # creates token every time maybe worth doing it once every 30m as they
    # expire every hour
    auth = firebase.auth()
    user = auth.sign_in_with_email_and_password(FB_USER, FB_PASS)

    db = firebase.database()
    data = {
        "url": url
    }

    db.child("users").push(data, user['idToken'])

    is_yes = False

    return is_yes

Change 'is False' to 'not'
refactor: Change 'is False' to 'not'
