simple check to prevent more expensive checks