is() and includes() now return undefined if state does not exist, fixes #303