made isStartingCell more efficient