Missing parameter.

The call to checkbox is missing a parameter.
Extra check in case $ip is not a string value.
Replace parameter default with empty array.

Instead of having the attribute being NULL when not given, we make it an empty array.
Remove unused property
Redo the PHPUnit setup