Making isSAC() more robust