return early from function