Forgot to use isset() instead of count() because I unset values in the array