test for attr prescence