Use block_given? instead of checking redirect_path's existence