return nil right away if key is empty with error empty key is not a valid key