checks status of light