Some null and empty stacksize checks