Fix Wrong $checked['path']

The code used to check PATH 1 time only.