Add isIndexPathSelected: method