Getting this kind of warning :: Non-existent associative array entry. Returning default value

In reply to d_g:

This is an expected warning as you are attempting to access an associative array member which doesn’t exist and that you will be getting the default value.

You could first check if the entry exists prior to attempting to access it to avoid the error.