foreach ( $object->getProcess() ) { if ( $object->method( $_ ) ) { # ... do stuff } }