Convert result of localStorage to boolean object