my $RootDirectoryCanidate= shift() or return undef(); my $RootDirectoryCanidate= shift() || return undef(); #### sub method { return if @_ && !defined $_ [0]; my $root_directory_candidate = shift; ... } #### return unless defined $_ [0];