Added handler in support functions for empty logs arrays