Optimize acceleration condition

Change: simplify check for single body not contained in tree.