attribute is present or not judged by function isPresent