fixed that requestDataAsArray also detects if no data is presented