Check if row is selected