Changed impl of isSpareFrame - more verbose but more readable