Lights function that takes a boolean