Test that the index field is not empty

We have a case where it is possible that someone is passing in data that may or may not have been saved to our DB already. In this case these index fields may be empty as such there is no reason to try to retrieve it.