A court may properly sustain a general demurrer to a declaratory relief cause of action when it can determine as a matter of law that the plaintiff is not entitled to the declaration that it seeks.