diff --git a/core/msg.c b/core/msg.c
index 2afc1def316e96b5c606973e07e711eb35e21f9d..2cef88571adb2fe0b634a14b1af0f5b6696eeeb7 100644
--- a/core/msg.c
+++ b/core/msg.c
@@ -296,7 +296,7 @@ static int _msg_receive(msg_t *m, int block)
 
     int queue_index = -1;
 
-    if (me->msg_array) {
+    if (thread_has_msg_queue(me)) {
         queue_index = cib_get(&(me->msg_queue));
     }
 
@@ -381,7 +381,7 @@ int msg_avail(void)
 
     int queue_index = -1;
 
-    if (me->msg_array) {
+    if (thread_has_msg_queue(me)) {
         queue_index = cib_avail(&(me->msg_queue));
     }