fixer testing if array is empty before passing in mysql IN