How to remove layers in staging environment and only use in dev environment

I would like to remove PythonRequirementsLambdaLayer and do not deploy it in my staging environment

my serverless.yml looks like this

custom:
  bucketName: bucket-test
  pythonRequirements:
    layer: true
    dockerizePip: non-linux
    slim: true
. .
..
..
..
functions:
  hello:
    handler: hello.handler
    timeout: 25
    layers:
      - Ref: PythonRequirementsLambdaLayer
  events:
    - http:
         path: /hello
..
..
..

I would like to use the PythonRequirementsLambdaLayer in my dev environment but I would like to remove it in my staging environment.

How can I do that?

Solved by using the ifelse plugin