Check if the @data[module] is set, before trying to return it

Not doing this results in errors (trying to get an item of an unexisting
array)