is_element and is_empty and supposed to exit on an error