```python
def check_isosceles(x, y, z):
    """
    Checks if a triangle with side lengths x, y, z is isosceles.

    An isosceles triangle must first be a valid triangle. A valid triangle
    has all side lengths greater than zero and satisfies the triangle
    inequality theorem (the sum of any two sides is greater than the third).

    If it is a valid triangle, it is isosceles if at least two of its
    sides are equal in length.
    """
    is_valid_triangle = (
        x > 0 and y > 0 and z > 0 and
        x + y > z and
        x + z > y and
        y + z > x
    )

    if not is_valid_triangle:
        return False

    is_isosceles = x == y or y == z or x == z

    return is_isosceles
```