Clearing value before checking to avoid double check.