# tf_agents.utils.common.safe_has_state

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/agents/blob/v0.19.0/tf_agents/utils/common.py#L1535-L1540) |

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

    tf_agents.utils.common.safe_has_state(
        state
    )