horde: improves check for opt. dep.