Grid points on hyperbolas

Find a condition which determines whether the hyperbola y^2 - x^2 = k contains any points with integer coordinates.

Problem



Find a condition which determines whether the hyperbola $y^2 - x^2 = k$ contains any points with integer coordinates.