if condition added to check env file