navigator condition check