[BUGFIX] Avoid foreach() on glob() return which may be FALSE