Check for 0 shas before dereferencing list