In a contract where a modifier like this would be reused a lot, is ID inherited by the function that uses the modifier? If not, this check would need to be in the function. If yes, is there any drawbacks from putting uint ID
in the modifier?
modifier isMember (address _foo) {
uint ID = memberIndex[_foo];
require(ID != 0);
_;
}