avoid vector indexing if binary size is 0