Only showing state names from state object when it exists