Added contditional expression visitor

__getitem__ now has check for is_static attribute