Move check for empty memory series to separate method.