Remove error handling in getter function