// Fix check if ps_log is not empty