well you can make your own function that first scans for entities and then does a trace, if they are both successful then it didnt go thru a wall.