def get_empty_facilities_msg(browser):
 try:
  elem = browser.find_element_by_id('no-facilities-message')
  return elem
 except NoSuchElementException:
  return None

def get_empty_facilities_msg ( browser ) : try : elem = browser . find_element_by_id ( 'no-facilities-message' ) return elem except NoSuchElementException : return None
returns a selenium webelement if it exists .