detecting empty ideas array