function hasRow($strict = false) { return ($strict) ? (bool)count($results) == 1 : (bool)count($results); } // aantal rijen - resultaat // normaal 0 false 1 true 2 true // strict 0 false 1 true 2 false function hasRows() { return (bool)count($results) > 1; }