Improing check for memo is None