Well the intention is to modify the behavior of For Science so that on vessels including a science lab, it will gather zero science value experiments for use in the lab, which uses the data value not the remaining science value. So, for this specific case, I am looking at Is the There A Lab On Board. i don't need to know how many there are or how many modules total, just if there is at least one. But I do appreciate your explanation of the other methods which may come in handy for other projects.
Now, in meantime since posting this I have shifted to just looking for a scientist on board. Since I develop on the base game (+ FS and Mechjeb) I assume a lab based ship or station will have a scientist on board. And if not too bad so sad you lose out on the opportunity to gather that experiment.