code: private boolean doesStoragePortExistsInVArray  ( StoragePort umfsStoragePort , VirtualArray virtualArray ) { List < URI > virtualArrayPorts = returnAllPortsInVArray ( virtualArray . getId ( ) ) ; if ( virtualArrayPorts . contains ( umfsStoragePort . getId ( ) ) ) { return true ; } return false ; }