Checking if pics is really undefined