utils.php (min and max operators)