Properly check that the port key is present