Changing from array_key_exists to isset, ['from'] can't be null