A contract may be construed either before or after there has been a breach thereof.