get size defensively
Merge pull request #254 from mistio/nephoscale_network

get size defensively