Remove opts to ensure code path causing #23 is tested
Check opts exist prior to attempting attribute access - closes #23