A notebook accepts an input parameter that is assigned to a python variable called department and this is an optional parameter to the notebook. You are looking to control the flow of the code using this parameter. You have to check if the department variable is present, then execute the code; if no department value is passed, then skip the code execution. How do you achieve this using Python?