Extracted is_uniform()