Removed strict condition because in that place it's not needed and changed type to int for shop id. Problem was that when getShopId function returned string '1' it was not equal to int 1