Moved rowContains method to proper place in file.