tf_agents.utils.common.safe_has_state

Safely checks state not in (None, (), []).