you can use the in keyword to check if there is a key, or you can specify a default parameter in the second argument of the get (key, default) function
if 'visible' in kwargs:
do something
# OR
visible = kwargs.get('visible', False)
Update:
super() (.. ) , pop (key, default), . , .
def __init__(self, *args, **kwargs):
visible = kwargs.pop('visible', False)
super().__init__(*args, **kwargs)