Added the extension state
hasData() checks now if the value is !empty()