near_sdk::env
pub fn state_exists() -> bool
Returns true if the contract state exists and false otherwise.
true
false