ArrayPort: change isAttached() to return true with no argument if at least one socket

The current implementation of isAttached() for ArrayPort could return true in the case it's been called with no argument, if there is at least one socket attached to the port.