Trapped possible occurrance of NA in conditional.