Checking context type